package com.meituan.sdk.model.tuangouNg.atomgoods.productSubjectStatusUpdate;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 更新菜品主体售卖状态
* This file was automatically generated.
*/
@ApiMeta(
    path = "/tuangou/ng/atomgoods/product/subject/status/update",
    businessId = 1,
    apiVersion = "10020",
    apiName = "product_subject_status_update",
    needAuth = true
)
public class ProductSubjectStatusUpdateRequest implements MeituanRequest<ProductSubjectStatusUpdateResponse> {
    /**
    * <p data-diff-id="ct-diff-id-87f4e9f9-e286-4d07-b0a2-8aa8918eb6eb">附件信息/加价属性类型，1-总部, 2-门店</p>
    */
    @NotNull(message = "scope不能为空")
    @SerializedName("scope")
    private Integer scope;
    /**
    * <p data-diff-id="ct-diff-id-ed459bd0-0648-4d84-8ebe-ecc7658638ef">总部code，当scope = 1时必填</p>
    */
    @SerializedName("vendorChainId")
    private String vendorChainId;
    /**
    * <p data-diff-id="ct-diff-id-0b5c4885-2223-4d19-8352-9c9fc7f031f2">门店code，当scope = 2时必填</p>
    */
    @SerializedName("vendorShopId")
    private String vendorShopId;
    /**
    * <p data-diff-id="ct-diff-id-00f24adb-58b8-4c35-9462-4ab6eae0822c">主体类型：10-spu，11-sku，20-加价属性，30-加料，40-餐盒</p>
    */
    @NotNull(message = "subjectType不能为空")
    @SerializedName("subjectType")
    private Long subjectType;
    /**
    * <p data-diff-id="ct-diff-id-7584bc97-4683-47e1-8ead-3d2e81c8db7d">批量更新的商品信息</p>
    */
    @NotEmpty(message = "subjectStatusList不能为空")
    @SerializedName("subjectStatusList")
    private List<PSubjectStatus> subjectStatusList;

    public Integer getScope() {
        return scope;
    }
    public void setScope(Integer scope) {
        this.scope = scope;
    }
    public String getVendorChainId() {
        return vendorChainId;
    }
    public void setVendorChainId(String vendorChainId) {
        this.vendorChainId = vendorChainId;
    }
    public String getVendorShopId() {
        return vendorShopId;
    }
    public void setVendorShopId(String vendorShopId) {
        this.vendorShopId = vendorShopId;
    }
    public Long getSubjectType() {
        return subjectType;
    }
    public void setSubjectType(Long subjectType) {
        this.subjectType = subjectType;
    }
    public List<PSubjectStatus> getSubjectStatusList() {
        return subjectStatusList;
    }
    public void setSubjectStatusList(List<PSubjectStatus> subjectStatusList) {
        this.subjectStatusList = subjectStatusList;
    }


    @Override
    public MeituanResponse<ProductSubjectStatusUpdateResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<ProductSubjectStatusUpdateResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "ProductSubjectStatusUpdateRequest{" + "scope=" + scope + "," + "vendorChainId=" + vendorChainId + "," + "vendorShopId=" + vendorShopId + "," + "subjectType=" + subjectType + "," + "subjectStatusList=" + subjectStatusList + "}";
    }
}
